package com.linq.cool.beauty.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linq.cool.beauty.domain.BeautyOrderEvaluation;
import com.linq.cool.beauty.dto.BeautyOrderEvaluationDTO;
import com.linq.cool.beauty.dto.BeautyOrderEvaluationQueryDTO;

import java.util.List;

/**
 * @Author: yqlin
 * @Date: 2021/2/15 22:39
 * @Description:
 * @Version: 1.0.0
 */
public interface BeautyOrderEvaluationService extends IService<BeautyOrderEvaluation> {

    /**
     * 前台评价保存
     *
     * @param dto
     */
    void saveMemberOrderEvaluation(BeautyOrderEvaluationDTO dto);

    /**
     * 分页查询评价
     *
     * @param page
     * @param dto
     *
     * @return
     */
    IPage<BeautyOrderEvaluation> listByPage(IPage<BeautyOrderEvaluation> page, BeautyOrderEvaluationQueryDTO dto);

    /**
     * 前台获取指定商品的评价信息
     *
     * @param productId
     *
     * @return
     */
    List<BeautyOrderEvaluation> listProductEvaluations(Long productId);
}
